package com.zdkj.subway.check.controller.subwayRat.conductorDifferences.cheZhan;

import com.zdkj.subway.check.controller.CommonController;
import com.zdkj.subway.check.entity.Page;
import com.zdkj.subway.check.entity.SwAuStationShort;
import com.zdkj.subway.check.mapper.SwAuStationShortMapper;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 车站补款确认通知
 */
@Slf4j
@RestController
@RequestMapping("/xw_cz")
public class SwAuStationShortCtrl {
    @Resource
    SwAuStationShortMapper swAuStationShortMapper;
    @Autowired
    CommonController commonController;

    /**
     * 车站补款确认通知列表i
     * @param page
     * @param swAuStationShort
     * @param param
     * @return
     */
    @RequestMapping("/get_xw_cz_xwSwAuStationShortList")
    @ApiOperation(value = "车站补款确认通知列表i",notes = "车站补款确认通知列表i")
    public Page get_xw_cz_xwSwAuStationShortList(Page page, SwAuStationShort swAuStationShort, @RequestParam Map<String,Object> param){
        try{
            List<Map<String,Object>> res=swAuStationShortMapper.getSwAuStationShortList(param);
            page.setData(res,true);
        }catch (Exception e){
            log.error("{}",e);
        }
        return page;
    }

}
